package com.zhang.server.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Category {

    private Integer id;
    private String name;

    private String remark;

    private Integer pid;

    @JsonFormat(pattern = "yy-MM-dd HH:mm:ss") // 日期格式化
    private String createtime;

    @JsonFormat(pattern = "yy-MM-dd HH:mm:ss") // 日期格式化
    private String updatetime;

    private List<Category> children;

}